HubSpot Interview Question

They asked to complete a coding problem involving recursion.