Amazon interview question

Write a method that returns true if the two given strings were anagrams.