An Api is given which is paginated. (Response will not come at once instead you have to call the api with different page numbers in query parameter). You have got K number of threads available write a code which calls this api and returns the whole response.
Asked in the Round 4 (Hiring manager) stage. For this SQL version, the API fetch results are stored by run, page, and item.
Output
- Return one row per item from completed runs where every expected page exists and succeeded.
- Include
run_id, page_number, item_position, and response_payload.
- Order by
run_id, page_number, and item_position ascending.