Pregunta de entrevista de Microsoft

Python binary tree manipulation, printing in various orders.