n-queen

typical but tricky, need review~