Since we want distance and not displacement, break it up into sections, sections where it is moving in the positive direction or the negative direction. To find out when it changes direction, we need to find when the velocity becomes zero, so firstly you would differentiate each component to find the velocity vector equation, and then equation that to zero (normally you equate each of the three components to zero and find a value of

for which they are all zero, but since they all vary with the same function of

, it's a little bit easier here) to find value(s) of

. Then you can find the displacement at the points that it stops, relative to the point it started at. The distance will be the sum of these differences.
i.e. It stops at

, checking that at

our displacement is zero, we can just subtitute

into the displacement vector equation, and then substitute

in. The distance travelled between

and

will be given by
-\underset{\sim}{r}\left(0\right)|)
. Then the distance travelled between

and our endpoint

will be
-\underset{\sim}{r}\left(3\right)|)
. Add those two together and you get the total distance traveled in that interval.
The reason it works is because when you break it down into sections where the direction of motion does not change, then the change in displacement will be equal to the distance travelled in that interval.
Probably took more space to explain it than to actually do the question but oh well, hope that helps and makes sense.
Now back to not procrastinating from midsem exam studying...
EDIT: Added modulus to difference in displacements, as we want the distances to be positive.