lets say that goutham moved fom A to B of a distance 2km and then to C of a distance 5km
over here the distance is going to be 7km
whereas the displacement is going to be the shortest distance from initial position to final position so the displacement is going to be the distance from A to C
hope this helps
regards :)