Group Anagrams

Solution Code

Time Complexity

O(N K log K)

Space Complexity

O(N K)