Fitch Ratings interview question

Some coding and basic linear regression