Morgan Stanley Interview Question

Rotate an array by some value.