Print all non-boundary elements of Matrix
Given an N x M matrix, print all its non-boundary elements. (all elements except boundary elements) Examples: Input: {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}Output: 6 7 Input: {{8, 7, 6, 5, 4, 8}, {3, 5, 2, 1, 7, 9}, {6, 7, 3, 9, 0, 7}, {3, 6, 9, 2, 1, 0}}Output: 5 2 1 7 7 3 9 0 Approach: To so