PayPal interview question

A code involving array rotation.