Citadel interview question

Leetcode style questions- graph and DP