scala oneliner
scala\nobject Solution {\n  def kthLargestValue(matrix: Array[Array[Int]], k: Int): Int =\n    matrix\n      .map(_.scanLeft(0){case (a,b) => a^b}.drop(1)).tran
```scala\nobject Solution {\n  def kthLargestValue(matrix: Array[Array[Int]], k: Int): Int =\n    matrix\n      .map(_.scanLeft(0){case (a,b) => a^b}.drop(1)).transpose\n      .map(_.scanLeft(0){case (a,b) => a^b}.drop(1))\n      .flatten.sortBy(- _).drop(k-1).headOption.getOrElse(-1)\n}\n```
['Matrix', 'Prefix Sum', 'Scala']