Redgate Software interview question

Write code to traverse the binary tree.