Netflix Interview Question

Graph based question involving traversal