Pergunta de entrevista da empresa BT Group

Basic routing question. Different scenarios