Upstart interview question

Two pointer algorithm. Linear regression.