Dinesh Goyal's submission of Permutation Swaps | CodeChef