The dimensions of universal gravitational constant are:
From Universal law of gravitation, we know F=GMmR2, where, 'G' is the gravitational constant, 'M' is the mass of first object and 'm' is the mass of the second object and 'R' is the distance between them.
Therefore, G=F×R2M×m
Since it's S.I. unit is N−m2kg2, therefore N is unit of force = MLT−2, dimension of length (m) = L , dimension of mass (kg) = M.
So, the dimensions of universal gravitational constant is ML3T−2M2 =M−1L3T−2