input: Write a python function to scrape all the titles of links from a given URL using BeautifulSoup.
  assert scrape_titles("http://example.com") == ["Example Domain", "More information..."]
  assert scrape_titles("http://example.com/more-links") == ["Link 1", "Link 2", "Link 3"]
output: def scrape_titles(url):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      titles = [link.get_text() for link in soup.find_all('a')]
      return titles