is anagram program solution 2