Geotab interview question

Coding question was open book and easy to do