Code Nation interview question

Their coding round was mostly based on dynamic programming and graphs.