Citi interview question

Write a program to rotate an array.