Solve anagram grouping and in-place allocator | NVIDIA