Snowflake Interview Question

All three questions were on dynamic programming