Google Interview Question

Traverse a binary tree in python