docs: public static int max(int[][] matrix) {
      int max = Integer.MIN_VALUE;
      for (int[] row : matrix) {
        for (int elem : row) {
          max = Math.max(max, elem);
        }
      }
      return max;
    }