Flatiron Health Interview Question

Classic recursion problem