Swapping in a matrix | CodeChef