Domanda di colloquio di BMW Group

A simple algorithm question which I don't remember