Eli Lilly and Company interview question

N Queen Problems using JavaScript.