Dinesh Goyal's submission of Optimal Sorting | CodeChef