vaskir
val last = (0..3).flatMap { x -> (0..3).map { y -> offsets.sumBy { (first, second) -> arr[y + second][x + first] } } }.max()
LastExceed