RGB_ICPC7's submission of Substring Query | CodeChef