Salesforce Interview Question

Right rotate the array of digits