Given a stream of Kafka message offset commits, determine the committed offset state. In Kafka's consumer model, messages are processed and their offsets are committed to track progress. The problem involves reasoning about which offsets have been fully committed (i.e., all offsets up to…