Pregunta de entrevista de Snowflake

1st: write a stream parser 2nd: tree problem