Company: ibm_13oct
Difficulty: medium
Total Transmitted Logs Problem Description You are given a logging system that uses a circular buffer. This buffer can hold up to n logs. Each log has a unique timestamp (in milliseconds) and an associated tag. When a new log arrives, the system processes it as follows: Buffer Management: If the circular buffer is currently full (i.e., it contains bufferCapacity logs), the oldest log in the buffer is removed to make space for the new log. After this potential removal, the new log is added to the buffer. Log Transmission: After the new log has been added to the buffer (and any necessary oldest log removed), the system identifies and transmits all logs that meet the following criteria: They share the same tag as the newly arrived log. Their timestamp falls within a specific time window relative to the newly arrived log's timestamp. This window is defined as [new_log_timestamp - transmissionWindow, new_log_timestamp] . Your task is to implement a function that calculates the total number