input: def consume_carrots(eaten, required, available):
      """
      As a ravenous rabbit, you've already consumed some carrots,
      but now you need to eat more to fulfill your daily requirement.
      the function should return a list with [ total number of carrots eaten after your meals,
                                               the number of carrots left after your meals ]
      in case the available carrots are insufficient, you'll consume all available carrots and remain hungry.
      
      Example:
      * consume_carrots(5, 6, 10) -> [11, 4]
      * consume_carrots(4, 8, 9) -> [12, 1]
      * consume_carrots(1, 10, 10) -> [11, 0]
      * consume_carrots(2, 11, 5) -> [7, 0]
      
      Variables:
      @eaten : integer
          the number of carrots already consumed.
      @required : integer
          the number of additional carrots required.
      @available : integer
          the number of carrots left in stock.
      
      Constraints:
      * 0 <= eaten <= 1000
      * 0 <= required <= 1000
      * 0 <= available <= 1000
  
      Enjoy your meal :)
      """
output:     total_eaten = eaten + required
      if required <= available:
          remaining = available - required
      else:
          total_eaten = eaten + available
          remaining = 0
  
      return [total_eaten, remaining]