Qualcomm Interview Question

Rotate a 2-D array clockwise.