J.P. Morgan interview question

gave a few technical questions