Hallmark Interview Question

How does logistic regression work?