Calculate The Total Distance Covered By A Train Before Coming

Calculate The Total Distance Covered By A Train Before Coming