Infosys Interview Question

N queens with n knights problem