DoorDash interview question

Super recursion