J.P. Morgan Interview Question

programming questions based on oops, then simple probability questions