wrote tests for anagrams()
answered the first question in assignment.md