Yet another substring problem | CodeChef