Confluent interview question

Implement a number queue with avg