NiCE interview question

Design a locomotive train.