Google interview question

asked arrays and graphs question