Pergunta de entrevista da empresa Gaviti

Basic anagram question with strings.