Pregunta de entrevista de Anduril

Recursion question that could be found on leetcode