N Queens problem solved using Backtracking