Union Pacific interview question

know when to plug the train