Intutive C++ code (Easily Understandable) (PLEASE UPVOTE)
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n- O(n)\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n- O(1)\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    int diagonalSum(vector<vector<int>>& mat) {\n        int i,j,k,c=0,s=0;\n        for(i=0;i<mat.size();i++){\n            c+=mat[i][i];\n            if(i!=mat.size()-i-1)\n            c+=mat[mat.size()-i-1][i];\n        }\n        return c;\n        \n    }\n};\n```
['Array', 'Matrix', 'C++']