Upwind Interview Question

the known Anagram Leetcode question