Qtech Software interview question

assignment to fetch data uisng API