This solution is generated by ChatGPT, correctness is not guaranteed. You might also be able to find a solution fromcommunity posts.
AI solution for React Quiz on BFE.dev
29. useEffect() timing IV
The code above outputs the following by console.log:
1 3 5 2 4