Amazon Interview Question

How would you build a spam filter for email