Pergunta de entrevista da empresa Pocket Gems

Data structure and Algorithm questions. A coding question about Tree.