HubSpot interview question

They asked to complete a coding problem involving recursion.