Meta interview question

Cohort Sql question and python