Pregunta de entrevista de Goldman Sachs

Probabilty questions, math questions, generic array coding question