Pergunta de entrevista da empresa Meta

Questions about BST and a simple algorithm question