Ilya Malinovsky's submission of Random decreasing function | CodeChef