Frage im Vorstellungsgespräch bei Geotab

A logical thinking question followed by a javascript question