Snowflake interview question

Graph question for coding, system design was simple.