Fidelity Investments interview question

to write code in Angular js