Gainsight interview question

Implement Array clockwise rotation by 90 degree.