Pregunta de entrevista de Profitect

How does logistic regression work?