Your question is Linear Regression From Scratch. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Write a function to perform linear regression from scratch.
Implement the estimator without using a prebuilt regression model. It should fit coefficients and an intercept, support numerical input features, make predictions, and expose an objective or convergence criterion. Include a small evaluation demonstrating training behavior and reporting regression metrics.