N-Queens II

Follow up for N-Queens problem.
Now, instead outputting board configurations,
return the total number of distinct solutions.

Login to see Answer and Coaching Session More interview questions