Requirements
- Input is a flat
List<String>whose order is fixed in triples:id,name,tag, then the next GIF'sid,name,tag. - Implement a function that accepts a target
tagandpage. - Deduplicate GIF records before pagination.
- Return all GIF records matching the target tag on the requested page.
- Preserve the same relative order as the original input.
Notes
- One onsite variant forced Java initially, then allowed another language after the candidate asked.
- The prompt is easy to overcomplicate; the important parts are parsing triples correctly, preserving stable order after deduplication, and making pagination boundaries explicit.

