J.P. Morgan interview question

Virtual function, two consecutive 6 of dice, linear regression, data structure.