Netcracker Technology interview question

write a program to rotate an array right