Why my program is not executing after taking input

Hi Ishika,
After taking the input, the implementation of for loops for initializing the sol array is wrong. After that you need to check your if conditions for calling the recursive function. And check the conditions of “if” conditions in the recursive function.