Vanguard interview question

Describe a program that checks if two strings are anagrams.