Move a prefix of a lineup behind the remaining people.
Task: Rotate the list left by k positions; rotations wrap and k may exceed n.
Input format: n, then n integers, then nonnegative k.
Output format: The rotated integers, space-separated.
Constraints: 1 <= n <= 100000; 0 <= k <= 10^9; -10^9 <= a[i] <= 10^9
Edge rules: Apply the stated zero, tie, boundary, and ordering conventions exactly.