SquareShift Interview Question

RotateArray Remove duplicates from the sequence