Persistent Systems Interview Question

matrix type coding questions.. Rotate a matrix