Array Rotation

Scenario when all elements are rotated is not working.