Pregunta de entrevista de J.P. Morgan

programming questions based on oops, then simple probability questions