Leetcode 3042. Count Prefix and Suffix Pairs I | Hello Interview