Amazon Interview Question

Coding Question: 1- Question-related to sorting and searching. 2- Question-related to Trees