Let ping pong ball be called PPB
To solve this problem you must know the following unit change
1km = 1000m
1m = 100cm
Then, applying the change of units, we have that the length in kilometers is:
6.02x10 ^ 23PPB x 4.0cm / 1PPB x 1m / 100cm x 1km / 1000m = 2.41 x 10 ^ 19 km