J.P. Morgan interview question

they asked me to write a code in angular.