Pergunta de entrevista da empresa Eurofins

One coding question was to check if two strings are anagrams.