Egen interview question

Implement one api in angular