3042. Count Prefix and Suffix Pairs I - Solutions and Explanation | Vultr Docs