Jane Street interview question

write a code for anagram