IBM interview question

How is logistic regression done?