code: function canOccupySlice(
    decorations: Array<?string>,
    start: number,
    end: number
  ): boolean {
    // eslint-disable-next-line no-plusplus
    for (let ii = start; ii < end; ii++) {
      if (decorations[ii] != null) {
        return false;
      }
    }
    return true;
  }
docs: Determine whether we can occupy the specified slice of the decorations
  array.