Cisco Interview Question

N queens problem.