Qtech Software Interview Question

assignment to fetch data uisng API