add solution for verify_anagrams