CODE NOT GIVING REQUIRED OUTPUT

QUES-QUEEN COMBINATION 2D KILL

pls copy the link and open in new tab

and pls try to give detailed explanation like where my code is wrong like this

here is your corrected code


i have marked your mistakes
if this solves your doubt please mark it as resolved :slight_smile: