Sollicitatievraag bij BMW Group

A simple algorithm question which I don't remember