scli's submission of Random decreasing function | CodeChef