Count Substrings Starting and Ending with Given Character

Count Substrings Starting and Ending with Given Character - Coding Problem | K5kC