That’s not your submission link.
I have updated it . plz look into it
1 2 3 RGR RGR
Try drawing a 2*3 grid and tell me how many valid configurations you were able to find.
output is coming 0
i get it that i can solve it by making a matrix but is there a way to solve the problem without forming a matrix?
Did you at least try this?
yeah i got it thanks…