BNSF Railway interview question

Basic questions on Data Structures and SQL