Pergunta de entrevista da empresa BNSF Railway

The manager asked me a puzzle