Leetcode 745. Prefix and Suffix Search | Hello Interview