J.P. Morgan Interview Question

How dataset works?