UpGuard interview question

Question about coding a batching framework.