Pergunta de entrevista da empresa Binance

Tree questions, binary search question