UST Interview Question

Rotating an array, code correction, aptitude