Snowflake interview question

Merge two list