Concentrix Interview Question

2 coding questions one is fetching api response as output using useEffect in react and related to nested list. and also shared few code snippets and asked the output and explanation for that.