Super Simple Kotlin Solution
Code
# Code
```kotlin []
class Solution {
    fun areaOfMaxDiagonal(dimensions: Array<IntArray>): Int {
        var maxD = Double.MIN_VALUE
        var maxA = 0

        for ((l, w) in dimensions) {
            val d = sqrt(l.toDouble() * l + w * w)
            if (d >= maxD) {
                maxA = if (d == maxD) max(l * w, maxA) else l * w
                maxD = d
            }
        }

        return maxA
    }
}
```
['Array', 'Kotlin']