Question d’entretien chez EarnUp

Write a function to compare two strings and return whether they are anagrams.