Pregunta de entrevista de Amazon

Searching and Sorting Questions . And Question on String and Binary Trees