Infosys interview question

N queens with n knights problem