TIAA interview question

implement producer, consumer classes