Anagrams

Question

Write a program that can determine whether two given strings are anagrams.

An anagram is word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters exactly once.

Example: Anagrams of “rail safety” = “fairy tales”