def square(n, ext_char, int_char) (0..n).map{|i| p (0..n).map{|j| ([0, n].to_a & [i, j]).any? ? ext_char : int_char }.join} end