Daily Distinct Product Rollup - Coding problem | OneNoughtOne