Leetcode 2255. Count Prefixes of a Given String | Hello Interview