For this, let's examine the options, if it is A, with a rotation of 45 ° clockwise, you would have the following
If it is C or D, with a 180 ° rotation in a clockwise or counterclockwise direction, the segment would remain the same.
Finally, let's examine the option, B with a 90 ° rotation clockwise, you have the following.
Therefore, the correct answer is B. A 90° clockwise rotation.