input: Write a function to take a list of email addresses as input and return a filtered list of email addresses that belong to a particular domain. If the list is empty then return an empty list.
  assert filter_emails_by_domain(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "@gmail.com")==["john@gmail.com", "sophie@gmail.com"]
  assert filter_emails_by_domain(["alice@outlook.com", "sam@aol.com", "jessica@outlook.com"], "@outlook.com")==["alice@outlook.com", "jessica@outlook.com"]
  assert filter_emails_by_domain(["john@hotmail.com", "sarah@hotmail.com"], "@gmail.com")==[]
  assert filter_emails_by_domain([], "@gmail.com")==[]
output: def filter_emails_by_domain(emails, domain):
      return [email for email in emails if email.endswith(domain)]