Fractal interview question

Two Medium Leetcode questions + linear regression technical questions