Pregunta de entrevista de Stream

State machine based on JSON input and expected output