Nokia Interview Question

Print all anagrams in the list or slice