Group strings that are anagrams | Uber Interview Question