Google interview question

It was a question on graph