CoverSelf interview question

Situational SQL queries and python question