Urban Company interview question

Q: Questions on graph connected componenets and Dynamic programming.