OpenText interview question

based on strings and string rotations.