input: Write a python function to generate an email using the provided template.
  assert generate_email("John Doe").startswith("JohnDoe") and generate_email("John Doe").endswith("@example.com")
  assert generate_email("Alice Smith").startswith("AliceSmith") and generate_email("Alice Smith").endswith("@example.com")
  assert generate_email("Bob Johnson").startswith("BobJohnson") and generate_email("Bob Johnson").endswith("@example.com")
output: def generate_email(name):
      email = name.replace(" ", "") + "@example.com"
      return email