Pergunta de entrevista da empresa Union Pacific

the test given was difficult