Pergunta de entrevista da empresa Amazon

Simple linear regression case was given.