Top Product per Category by Revenue - Medium SQL Window Functions Interview Problem | Unnested