UST interview question

Rotating an array, code correction, aptitude