Domanda di colloquio di Anduril

Recursion question that could be found on leetcode