Andrey Kim's submission of Sorting | CodeChef