Solution description
window = 5 min = 300 sec
Time complexity: O(1)
Space complexity: O(window) = O(1)
Time complexity: O(window) = O(1)