Snowflake interview question

Write a class that processes a stream of input