Pergunta de entrevista da empresa Paycom

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