code: private void inc(ArrayList<Integer> array, int index) {
          array.set(index, array.get(index) + 1);
      }
docs: Increments by 1 the Integer of the given list of integers at the index position.
  
  @param array array list of integers.
  @param index index of the element to be incremented.