Compute cohort GMV and payer rate with edge cases | Meta Interview Question