Go tour binary tree exercise solution.