Pergunta de entrevista da empresa Arista Networks

BST question, data-structures heavy interview.