Nutanix interview question

Graph traversal problem.