pawan dixit's submission of Count Substrings | CodeChef