Freshworks Interview Question

Design question on maintaining counters.