String Rotation challenge - CodeEval