Deliveroo Interview Question

How would you extend your (coding test) solution to do X?