Shell Interview Question

How Naive Bayes algorithm works