Pergunta de entrevista da empresa Morgan Stanley

dsa questions one was dp and another was from binary search tree