input: Write a function to filter email addresses belonging to a specified domain from a given list of email addresses. If the list is empty, return an empty list.
  filtered_emails(emails: List[str], domain: str) -> List[str]
  assert filtered_emails(["john@gmail.com", "sarah@yahoo.com", "bob@microsoft.com", "sophie@gmail.com"], "@gmail.com")==["john@gmail.com", "sophie@gmail.com"]
  assert filtered_emails(["james@hotmail.com", "linda@yahoo.com"], "@hotmail.com")==["james@hotmail.com"]
  assert filtered_emails([], "@gmail.com")==[]
  assert filtered_emails(["alice@google.com"], "@google.com")==["alice@google.com"]
  assert filtered_emails(["john@gmail.com", "sophie@gmail.com"], "@yahoo.com")==[]
output: def filtered_emails(emails: List[str], domain: str) -> List[str]:
      return [email for email in emails if email.endswith(domain)]