Pergunta de entrevista da empresa Microsoft

Print all anagrams together. Print left view of binary tree.