Tripadvisor interview question

Regression explain with different problems