Pregunta de entrevista de Meta

coding challenge that involves recursive.