Pregunta de entrevista de SUNRISE FUTURES

Two probability questions, and one coding problem (dynamic programming)