Tony Wang's submission of Count Substrings | CodeChef