Dematic interview question

A graph question. No coding just thought process