Infosys interview question

How to rotate an array?