KBC interview question

What is logistic regression and how does it work?