Salesforce interview question

Rotate an array using language of choice