G-Research Interview Question

How would you code a multiclass version of logistic regression ? What is a naive Bayes classifier?