SpaceX Interview Question

Step through tree-based algorithms in python.