Apart from above answer there is a round about method of solving it.
See, in the first round dog covers a distance of 2/3 part of 10km and second friend covers 1/3 rd part.
Meanwhile first friend also will be covering 1/3 distance. So now the distance left for dog to run is only 10/3km in the second round.
In this again dog covers 1/3 of 10/3km and this continues........
Total distance covered by
the dog = 2/3 . 10 + 2/3 . 10/3 + 2/3 . 1/3 . 10/3 + 2/3 . 1/3 . 1/3 . 10/3 + 2/3 . 1/3 . 1/3 . 1/3 .10/3 + . . . . + . .
= 6.66 + 2.22 + 0.74 + 0.246 + 0.082 + . . . . . . .+ . . . . .
= 9.948 ie. approaching to 10km
@ sachinguptaiit Ofcourse your answer is eligant and apt