BNSF Railway interview question

one on coding a function, another on a regression task with multiple sub tasks.