Solve the 'anagrams' problem, simple to code but the problem description is not very clear.