J.P. Morgan interview question

Question on Final variable