Amazon Interview Question

A DS/Algorithm question involving BSTs