Placing N Queens into NxN dimensional chess board using stack(s) so that no two queens attack each other .