The last shape is the correct answer.
The thing that shapes first, second and third have in common is that they are all squares as all their sides are equal.
The last shape has two pairs of equal sides. So, it is not a square.
Hence, it does not belong.