Amazon Interview Question

Simple linear regression case was given.