input: 
  def consume(init_count, required, available):
      """
      A rabbit finds itself needing to ingest more carrots despite having already consumed some.
      The function should return a list containing [ the total number of carrots consumed post-meal,
                                                     the count of carrots still available after eating ]
      If the available carrots fall short, the rabbit will consume what remains and remain unsatisfied.
      
      Example:
      * consume(5, 6, 10) -> [11, 4]
      * consume(4, 8, 9) -> [12, 1]
      * consume(1, 10, 10) -> [11, 0]
      * consume(2, 11, 5) -> [7, 0]
      
      Variables:
      @init_count : integer
          the initial count of carrots consumed.
      @required : integer
          the additional carrots required for the meal.
      @available : integer
          the current stock of available carrots.
      
      Constrain:
      * 0 <= init_count <= 1000
      * 0 <= required <= 1000
      * 0 <= available <= 1000
  
      Enjoy the challenge :)
      """
  
output:     if available >= required:
          consumed = init_count + required
          remaining = available - required
      else:
          consumed = init_count + available
          remaining = 0
      return [consumed, remaining]