input: Write a python function to scrape the title and content from a given URL and save it as a JSON file.
  assert scrape_and_save('<Your URL>') == {'title': 'Expected Title', 'content': 'Expected Content'}
  assert scrape_and_save('<Another URL>') == {'title': 'Another Expected Title', 'content': 'Another Expected Content'}
  assert scrape_and_save('<Yet Another URL>') == {'title': 'Yet Another Expected Title', 'content': 'Yet Another Expected Content'}
output: import requests
  from bs4 import BeautifulSoup
  import json
  
  def scrape_and_save(url):
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
  
      title = soup.find('title').text if soup.find('title') else 'No Title'
      content = soup.get_text()
  
      result = {'title': title, 'content': content}
  
      with open('output.json', 'w') as f:
          json.dump(result, f)
  
      return result