PayPal Interview Question

A code involving array rotation.