Pregunta de entrevista de Amazon

Simple linear regression case was given.