Krunch interview question

How does naive Bayes work?