Derive Linear Regression Solution | Meta Interview Question