Count Prefix and Suffix Pairs I — CaffeCode