Cisco interview question

Can you create a program that detects an anagram.