ZS Associates interview question

Regarding Confusion Matrix and Regression