Shortest Repetition challenge solved