Guidewire Interview Question

group all anagram strings together