Pregunta de entrevista de Amazon Web Services

How would you code a spam classifier for emails?