J.P. Morgan interview question

programming questions based on oops, then simple probability questions