Genetesis interview question

Write a function checking or Anagrams.