Yahoo Interview Question

N-queens problem