Write a Java batch iterator. (as explained here: https://stackoverflow.com/questions/49973721/how-to-wrap-iterator-with-batch-in-a-given-size)
Anoniem
In these sorts of interviews you really need to drill down and understand what the interviewer is looking for. A good way to simulate a real interview experience is to do a mock with one of the Zilingo Senior Software Engineer experts on Prepfully, rated super strongly on TrustPilot... prepfully.com/practice-interviews