Miles IT interview question

Coding challenge and multiple choice test.