Ayan Ghatak's submission of Count Substrings | CodeChef