Pregunta de entrevista de Hallmark

How does logistic regression work?