Domanda di colloquio di IBM

they asked anagram question from leetcode.