the distance and displacement are the same since the only force that affects it is gravity (unless there are other unmentioned forces) since it has reached a maximum height of h it will travel back that same height to the ground thus the distance and displacement are equal to that height of h.