IBM interview question

Leetcode medium graph, array, and DP questions