_Sam's submission of Unusual Sorting | CodeChef