J.P. Morgan interview question

Explain design patters with examples