Pergunta de entrevista da empresa NCompass TechStudio

How would you check if 2 strings are anagram?