The answer is D.
The side lengths aren't the same and you can tell by calculating the hypotenuses of sides AB and sides BC.
For AB 2^2+5^2= 29 The length is root 29.
For BC 2^2+4^2=20 The length is root 20.
A square must have equal side lengths, which this figure does not