Meta Interview Question

Cohort Sql question and python