Cure.Fit interview question

DSA problems were based on DP and Graphs.