Devoteam interview question

How does logistical regression work