Oliver Wyman interview question

I was given some Python and SQL code to review and analyze.