Implementation of http://codingdojo.org/cgi-bin/wiki.pl?back=KataAnagram