Pregunta de entrevista de Upwind

the known Anagram Leetcode question