J.P. Morgan Interview Question

Question on Final variable