Distribution of g(X, Y) by grouping all pairs that give the same value PYQs | Prasnya