https://leetcode.com/problems/richest-customer-wealth/description/ Easy

Решение

class Solution {
    fun maximumWealth(accounts: Array<IntArray>): Int {
        var maxWealth = 0
        for (account in accounts) {
            var sum = 0
            for (money in account) sum += money
            if (sum > maxWealth) maxWealth = sum
        }
        return maxWealth
    }
}