Solution (source code)

= Solution

From $F=Gm_1m_2/r^2$, $[G]=L^3M^{-1}T^{-2}$.