Compute task order with prerequisites | Snowflake Interview Question