Frage im Vorstellungsgespräch bei Canonical

Solve a Python algorithm problem involving arrays and recursion.