zerocomplexity

It is an attempt to create counters for timed window with O(1) space and tie complexity. But it is doing a different jon. Appreciate if someone can suggest a technique