Backtracking

find all possible solution and use the one you want (pehale isstamal kare fir vishwas kare)

[[5. Recursion]] tree (for complex problem) solutions are in branches