Frage im Vorstellungsgespräch bei Oracle

Gave a coding problem to solve based on array and recursion.