Amazon Interview Question

Trees and two sum Q