This question is from GFG - https://practice.geeksforgeeks.org/problems/n-queen-problem0315/1# (N Queen Problem)
This is my code