Copart interview question

Right rotation of an array