Broadridge interview question

Valid anagram leetcode easy question