Kartik's submission of SORT | CodeChef