Sanofi Interview Question

code linear regression with line divider