Pregunta de entrevista de HubSpot

They asked to complete a coding problem involving recursion.