Using of map or Max by in kotlin
I am solving a leet code problem. I found one question in leetcode, which are below
You are given an m x n integer grid accounts where accounts[i][j] is the amount of money the ith customer has in the jth bank. Return the wealth that the richest customer has.
A customer's wealth is the amount of money they have in all their bank accounts. The richest customer is the customer that has the maximum wealth.
Input: accounts = [[1,5],[7,3],[3,5]]