Paycom interview question

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