Bloomberg interview question

Valid Anagram, from the leetcode question.