input: def store_and_query_user_data(user_data: dict) -> str:
      """ Store and query user data in a JSON file. 
      >>> store_and_query_user_data({"Name": "John", "Age": 25, "City": "New York"})
      '{"Name": "John", "Age": 25, "City": "New York"}'
      """
output:     import json
      with open('user_data.json', 'w') as file:
          json.dump(user_data, file)
      with open('user_data.json', 'r') as file:
          return file.read()