Voleon Interview Question

Heavily modified N-Queens problem