Deliveroo interview question

Online pair programming question around dictionary