Added comments description to countSubstrings problem