Frage im Vorstellungsgespräch bei Taboola

Given an array and an integer n, output the first n elements.