Union Pacific interview question

Nothing super difficult.