J.P. Morgan Interview Question

gave a few technical questions