I tested the input number from 1 to 5 without any error. Still, I cannot go through the validation and I cannot figure out what is wrong. The result looks like ok, I got the n x n array initiated with '#". I appreciate any help to debug it.