Morgan Stanley interview question

Rotate an array by some value.