Pergunta de entrevista da empresa Clutter

One question is based on graphs.