Cloud Certitude interview question

Rotate an array of integer