Frage im Vorstellungsgespräch bei the LEGO Group

Javascript co-programming. Find the longest consequetive numbers length in the array.