Why all the possible combination is not showing in result

@ayushwahi3005 you code has some small issues .refer to this code

your referred code is totally different can you plz tell me what is the problem in my code