Booking.com interview question

Identify whether four sides can form a square, a rectangle or neither.