PayPal interview question

Array rotations