Block Interview Question

Convert a tree to a list