Fidelity Investments Interview Question

to write code in Angular js