Bruteforce || simple and easy to understand solution
\n# Code\n\nint areaOfMaxDiagonal(vector<vector<int>>& dimensions) {\n    int area = 0, diag = 0;\n    for(auto d : dimensions){\n        int t = d[0] * d[0] + 
\n# Code\n```\nint areaOfMaxDiagonal(vector<vector<int>>& dimensions) {\n    int area = 0, diag = 0;\n    for(auto d : dimensions){\n        int t = d[0] * d[0] + d[1]*d[1];\n        if(t > diag || (t == diag && d[0]*d[1] > area)){\n            diag = t;\n            area = d[0]*d[1];\n        }\n    }\n    return area;\n}\n```\n\n\n\n---\n\n<b>Here is an article of my last interview experience - A Journey to FAANG Company, I recomand you to go through this to know which all resources I have used & how I cracked interview at Amazon:\nhttps://leetcode.com/discuss/interview-experience/3171859/Journey-to-a-FAANG-Company-Amazon-or-SDE2-(L5)-or-Bangalore-or-Oct-2022-Accepted\n\n---
['C++']