How does Collections.rotate(List<?> list, int distance) affect a list?
Collections.rotate(List<?> list, int distance)
It randomly shuffles elements in the list
It moves each element to its new position, cycling elements from one end to the other
It reverses the order of elements in the list
It sorts the list in ascending order by the specified distance