Pregunta de entrevista de Binance

Tree questions, binary search question