input: Write a python function to scrape data from a website and extract specific elements using BeautifulSoup.
  assert scrape_data('https://example.com', 'h1') == ['Example Domain']
  assert scrape_data('https://example.com', 'p') == ['This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.']
  assert scrape_data('https://example.com', 'a') == ['More information...']
output: def scrape_data(url, tag):
      import requests
      from bs4 import BeautifulSoup
  
      response = requests.get(url)
      soup = BeautifulSoup(response.content, 'html.parser')
      elements = soup.find_all(tag)
      
      return [element.get_text(strip=True) for element in elements]