Domanda di colloquio di Upwind

the known Anagram Leetcode question