Pergunta de entrevista da empresa Idexcel

write a program to find strings are anagrams, write some queries based on the group by.