Presidio interview question

3 Questions from dynamic programming, sliding window and graph, during Online Assessment