input: Write a python function to extract all the href links from a given URL.
  assert extract_links("https://example.com") == ["https://example.com/link1", "https://example.com/link2"]
  assert extract_links("https://anotherexample.com") == ["https://anotherexample.com/page1", "https://anotherexample.com/page2"]
  assert extract_links("https://yetanotherexample.com") == ["https://yetanotherexample.com/about", "https://yetanotherexample.com/contact"]
output: def extract_links(url):
      import requests
      from bs4 import BeautifulSoup
      
      response = requests.get(url)
      soup = BeautifulSoup(response.text, 'html.parser')
      links = [a.get('href') for a in soup.find_all('a', href=True)]
      absolute_links = [link if link.startswith('http') else url + link for link in links]
      
      return absolute_links