Pergunta de entrevista da empresa Geotab

Coding question was open book and easy to do