Redgate Software Interview Question

Write code to traverse the binary tree.