Galvanize interview question

sorting an anagram