Pregunta de entrevista de BNP Paribas

one statistical question and one programming question