OpenText Interview Question

based on strings and string rotations.