HubSpot Interview Question

JavaScript ANSYS, factory function, recursive