Implemented menu for anagram (question 4).