A line segment has endpoints (2,−1) and (5, −4). What are the new endpoints after rotating the segment 90° clockwise?

AAAaannndd the bot gets it wrong yet again!

(x,y)→(y,-x)
For sure, the two points' coordinates to not get mixed together!

The new endpoints after rotating the segment 90° clockwise would be (-4, 2) and (-1, 5).