Danfoss Interview Question

difference between logistic regression and linear regression. explain total probability theorem