Frage im Vorstellungsgespräch bei X

array number manipulation and returning after simple computation