Pergunta de entrevista da empresa Bloomberg

Connect next pointers in a binary tree