KLA interview question

Graph and DP and some medium level questions