c++ || easy 🔥
Code
# Code
```cpp []
class Solution {
public:
    int areaOfMaxDiagonal(vector<vector<int>>& dimensions) {
        float maxi = INT_MIN, index = -1;
        vector<float> digonal;
        for (int i = 0; i < dimensions.size(); ++i) {
            float l = dimensions[i][0];
            float b = dimensions[i][1];

            if (maxi < sqrt((l * l) + (b * b))) {
                maxi = sqrt((l * l) + (b * b));
                index = i;
            }
            digonal.push_back(sqrt((l * l) + (b * b)));
        }

        vector<int> indices;
        for (int i = 0; i < digonal.size(); ++i) {
            if (maxi == digonal[i]) {
                indices.push_back(i);
            }
        }

        if (indices.size() == 1) {
            return dimensions[index][0] * dimensions[index][1];
        }

        float maxii = INT_MIN;
        for (int j = 0; j < indices.size(); ++j) {
            if (maxii < dimensions[indices[j]][0] * dimensions[indices[j]][1]) {
                maxii = dimensions[indices[j]][0] * dimensions[indices[j]][1];
            }
        }

        return maxii;
    }
};
```
['Array', 'C++']