RGB_ICPC7's submission of Substrings and Repetitions | CodeChef