Amazon Interview Question

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