Write N lines with M numbers each that describe the layout of the second layer in the way shown above

Code Example - Write N lines with M numbers each that describe the layout of the second layer in the way shown above

                
                        2 1 1 4
2 3 3 4