L2-Regularized Linear Regression Loss Computation - Coding problem | OneNoughtOne