FOMO Pay Interview Question

Some background discussion and Some SQL