not passing the test case please tell me what wrong i am doing in my code and how to correct my approach
Not passing all test cases
you are returning true always
at end of fucntion
instead you have to return whatever recursion returns
so correct statement will be
return solve(a,n-1);