i tried trying all the combos but cant get the 2 testcases i am failing is there any way to know where the code is failing
What can be the possible corner cases for this question
for n==0 also you have to print -1
add this to your base case
i have considered for n==0 also