Google interview question

Graph Problems. Problems were related to the problems from Striver sheet.