Two Sigma Interview Question

two pretty basic coding questions and one focused on stats and numerical stability