easy in c++ solution
\nclass Solution {\npublic:\n    int diagonalSum(vector<vector<int>>& arr) {\n        int sum=0;\n        int sum1=0;\n        int i,j;\n        int n=arr.size(
```\nclass Solution {\npublic:\n    int diagonalSum(vector<vector<int>>& arr) {\n        int sum=0;\n        int sum1=0;\n        int i,j;\n        int n=arr.size();\n        int m=arr[0].size();\n        for(i=0;i<n;i++){\n            sum+=arr[i][i];\n            if(i!=(n-1-i)){\n                sum1+=arr[i][n-1-i];\n            }\n        }\n        return sum1+sum;\n    }\n};\n```
['C']