Dinesh Goyal's submission of Count Substrings | CodeChef