About strg array

strg array is a 3D array, but at the time of filling it with -1, we have used only two loops at time 11:40. How this happened?