Microsoft interview question

Derive logistic regression loss function.