My goal is to get all the solution possible from this code.
I tried adding an array where I it will store all the solution and then if the solution exists, consider a