Solve scheduling and tree path problems | Snowflake Interview Question