Gainsight Interview Question

Implement Array clockwise rotation by 90 degree.