Successful solution for Count Substring problem - http://www.codechef.com/JULY14/problems/CSUB