Top Sellers by Distinct Cross-Brand Items - Coding problem | OneNoughtOne