Amazon Interview Question

Group anagrams inside an array.