Calculate Cohort Retention | Intuit Interview Question