Union Pacific Interview Question

Nothing super difficult.