Solve a medium-difficulty algorithmic problem involving data structures or string manipulation for Deliveroo.