Distribution of $g(X,Y)$ by grouping all pairs that give the same value Previous Year Questions | Prasnya