Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try generating the array.
Make sure not to fall in the base case of 0.
Solve with full IDE support and test cases