Amazon Interview Question

Convert binary tree into list, but using constant memory