char 2D array, something not working

the below code isn’t working properly.
Just print “st” in serial monitor, without change line.
it is working if I uncomment the line “leds[0][0] = inputString.charAt(2);”. Looks like the leds[0][0] hasn’t value or something.
Could you tell me please what is going wrong?

#define MY_SIZE 20

void setup()
{
  delay(1000);
  Serial.begin(9600);
    Serial.println("starting the program");
}

void loop()
{
  char leds[MY_SIZE][MY_SIZE];
  int count;
  int i=0;
  int j=0;
  
  String inputString = "00110011.11001100.\n";
  
  for(int count=0; count<inputString.length(); count++){
    leds[j][i] = inputString.charAt(count);
    Serial.print("leds[");
    Serial.print(j);
    Serial.print("][");    
    Serial.print(i);
    Serial.print("] = ");
    Serial.println(leds[j][i]);
    
    if(leds[j][i] == '.'){
      i=0;
      j++;
      continue;
    }
    i++;
  }
  //leds[0][0] = inputString.charAt(2);
Serial.println(leds[0][0]);
  delay(200000);
}

I had no problems running the sketch (on Nano), commented or uncommented.

Here is a version that does not use Strings and ignores ‘\n’.
I moved the actions to setup and used a higher baudrate.

#define MY_SIZE 20

void setup()
{
  char leds[MY_SIZE][MY_SIZE];
  int i = 0;
  int j = 0;
  Serial.begin(115200);
  Serial.println("starting the program");

  const char* input = "00110011.11001100.\n";

  for (byte count = 0; count < strlen(input); count++) {
    char curr = input[count];
    if (curr == '\n') continue;
    leds[j][i] = curr;
    Serial.print("leds[");
    Serial.print(j);
    Serial.print("][");
    Serial.print(i);
    Serial.print("] = ");
    Serial.println(curr);

    if (leds[j][i] == '.') {
      i = 0;
      j++;
      continue;
    }
    i++;
  }
  leds[0][0] = input[2];
  Serial.println(leds[0][0]);
}

void loop() {}
starting the program
leds[0][0] = 0
leds[0][1] = 0
leds[0][2] = 1
leds[0][3] = 1
leds[0][4] = 0
leds[0][5] = 0
leds[0][6] = 1
leds[0][7] = 1
leds[0][8] = .
leds[1][0] = 1
leds[1][1] = 1
leds[1][2] = 0
leds[1][3] = 0
leds[1][4] = 1
leds[1][5] = 1
leds[1][6] = 0
leds[1][7] = 0
leds[1][8] = .
1