Amazon interview question

Difference between linear regression and t-test