J.P. Morgan interview question

Build me architecture for library