OYO interview question

Graph Question