Confluent Interview Question

They asked a leetcode medium in the first round