Salesforce Interview Question

Rotate an array using language of choice