Amazon interview question

Trees and two sum Q