J.P. Morgan interview question

questions about closure and design patterns