LinkedIn interview question

Implement Naive Bayes theorem in Java.