Write a program to calculate the sum of the border elements of a hardcoded 2D matrix.
MediumProblem Statement
Write a program to calculate the sum of the border elements of a hardcoded 2D matrix.
Sample Input
Matrix: [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
Sample Output
Border Sum: 40
Limits
Time: 2s · Memory: 256 MB