Geotab interview question

A logical thinking question followed by a javascript question