Geotab interview question

Can you give another solution for the coding question?