Dinesh Goyal's submission of Swapping | CodeChef