Paycom Interview Question

Anagram Count of each unique character in a string. SQL Groupby.