Branch interview question

Create a function to compare two anagram strings.