Pregunta de entrevista de JPMorganChase

Typical algorithm questions, and probability questions