CME Group interview question

Beyes formula. Conditions for Linear regression. Python string coding question.