Uber interview question

To solve a question on Graph