code: public static void inverseDelta(int[] data) {
                  for (int i = 1; i < data.length; ++i) {
                          data[i] += data[i - 1];
                  }
          }
docs: Undo differential coding (in-place). Effectively computes a prefix
  sum.
  
  @param data
  to be modified.