Solve "Verify Anagram" problem.