Suppose you are given an array s[1....n] and a procedure reverse (s, i, j) which reverses the order of elements in s between positions i and j (both inclusive). What does the following sequence do, where 1 \(\leqslant k \leqslant\) n:
reverse (s, 1, k);
reverse (s, k+1, n);
reverse (s, 1, n);- ARotates s left by k positions
- BLeaves s unchanged
- CReverses all elements of s
- DNone of the above