Amsted Rail interview question

Basic questions