Google interview question

i was asked a question on graphs