Hitachi Interview Question

9 queens problem