Solving N queens problem using Hill-climbing with random restart.