Zhang Yide's submission of Substrings and Repetitions | CodeChef