Gusto Interview Question

A Leetcode Hard, on Recursion