Pergunta de entrevista da empresa Zilingo

remove all nodes from a binary tree having single child