Recall that displacement is nothing but the change in position. $$\text{Displacement} =$$ $$\text{Final position}$$ $$- \text{Initial Position}$$
The figure moves from $$x = 1$$ to $$x = 4$$. So, $$\mathrm{Displacement} \, = -3$$ along the +x direction.
The figure moves from $$x = 1$$ to $$x = 4$$. So, $$\mathrm{Displacement} \, = 3$$ along the +x direction.
The figure moves from $$y = 1$$ to $$y = 4$$. So, $$\mathrm{Displacement} \, = 3$$ along the +y direction.
The figure moves from $$y = 1$$ to $$y = 4$$. So, $$\mathrm{Displacement} \, = -3$$along the +y direction.