Count Substrings Starting and Ending with Given Character

mediumSolve on LeetCodeLast edited: August 2, 2025