Pergunta de entrevista da empresa IBM

they asked anagram question from leetcode.