code: func needsDeletion(value, index, number int64) bool {
  	if number > 0 {
  		return false
  	}
  
  	number = -number // get the magnitude
  	offset := value - index
  
  	return offset >= 0 && offset < number
  }
docs: // needsDeletion returns a bool indicating if the provided value
  // needs to be deleted based on the provided index and number.