input: Write a function named filter_emails_by_domain that takes a list of email addresses and a domain string as input. The function should return a list of email addresses that belong to the specified domain. If the input list is empty, the function should 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@yahoo.com", "mike@gmail.com"], "yahoo.com")==["alice@yahoo.com"]
  assert filter_emails_by_domain(["tom@hotmail.com", "jerry@hotmail.com"], "hotmail.com")==["tom@hotmail.com", "jerry@hotmail.com"]
  assert filter_emails_by_domain(["john@gmail.com"], "outlook.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)]