Tom Chen's submission of String Query | CodeChef