I'm trying to develop a program that gives a solution, if possible, for placing the minimum k queens on a chess board with n rows and n columns, where k < n, in such a way that some
queen attacks each cell using a stack. I know that I can't use recursion on this problem, but otherwise, I have no idea what to do. Any help would be much appreciated.