input: Write a python function to parse JSON data and extract the name and email of a person.
  assert extract_name_email('{"name": "John Doe", "age": 18, "hobbies": ["reading", "swimming", "gaming"], "contact": {"email": "johndoe@example.com", "mobile": "+1900000000"}}')==("John Doe", "johndoe@example.com")
  assert extract_name_email('{"name": "Jane Smith", "age": 25, "hobbies": ["hiking", "chess"], "contact": {"email": "janesmith@example.com", "mobile": "+1900000001"}}')==("Jane Smith", "janesmith@example.com")
  assert extract_name_email('{"name": "Alice Johnson", "age": 30, "hobbies": ["dancing"], "contact": {"email": "alicej@example.com", "mobile": "+1900000002"}}')==("Alice Johnson", "alicej@example.com")
output: import json
  
  def extract_name_email(json_data):
      data = json.loads(json_data)
      name = data.get("name")
      email = data.get("contact", {}).get("email")
      return name, email