Pergunta de entrevista da empresa Hallmark

How does logistic regression work?