Algorithm For N Queens Problem Solution