Design a Rolling Event Counter | Uber Interview Question