Pregunta de entrevista de Yahoo

Programming and statistical questions.