[leet code] N-Queens(Time Limit Exceeded)