input: Write a python function to serve data through a Flask API.
  assert serve_data() == jsonify(['Apple', 'Banana', 'Carrot'])
  assert serve_data() != jsonify(['Apple', 'Banana'])
  assert serve_data().status_code == 200
output: from flask import Flask, jsonify
  
  app = Flask(__name__)
  
  @app.route('/data')
  def serve_data():
      data = ['Apple', 'Banana', 'Carrot']
      return jsonify(data)
  
  if __name__ == '__main__':
      app.run()