Snowflake interview question

Leet code quesitons hard graph heavy