AC 107-Shortest Repetition