Frage im Vorstellungsgespräch bei Blibli

Recursive Problem and logic algorithm with a most efficient solution