HCLTech Interview Question

Write code to fecth data from api