Amazon interview question

Simple linear regression case was given.