Pregunta de entrevista de Tarana Wireless

Python function to print the depth-first traversal of a tree?