HP Inc. interview question

Questions about Linear and Logistic regression