Vivint Interview Question

Code Binary tree traversal