Cisco Interview Question

Chess question and rotate the matrix