IBM interview question

Rotate a 2D array 90 degree clock wise