Find first error and propagate failures | Snowflake Coding Question