vishal sharma's submission of Random decreasing function | CodeChef