Count the ways to pick two adjacent substrings that use exactly the same set of distinct letters. Too many requests from your network. Please wait a minute.