Confluent Interview Question

You will find it all on the discussion on Leetcode