Pregunta de entrevista de Citi

some basic probability questions and some basic coding questions related to binary tree