MAQ Software interview question

Array Rotation Code in Java