Leetcode 3084. Count Substrings Starting and Ending with Given Character | Hello Interview