Pregunta de entrevista de Morgan Stanley

They asked me question based on probability, and basic question on stacks