Deliveroo Interview Question

Simple Hashmap dictionary question to maintain the counts