J.P. Morgan interview question

Front end related - javascript, angular