Netflix interview question

Graph based question involving traversal