A particle moves on the x-axis and its velocity varies with time as v(t)=t−t2. Find the time instant when the particle come back to starting point. Also find the distance travelled till then.