Krunch Interview Question

How does naive Bayes work?