Sanofi interview question

code linear regression with line divider