code: private static int sum(final int[] sizes) {
          int sum = 0;
          for (int i = sizes.length - 1; i >= 0; i--) {
              sum += sizes[i];
          }
          return sum;
      }
docs: Computes and returns the sum of integers in the given array of ints.
  
  @param sizes an array of ints to sum up
  @return the sum of ints in the array