Pergunta de entrevista da empresa peopleHum

Write a program to check if two words are anagrams.