countSubstrings solution and test
Merge branch 'countSubstrings'