title: Sliding an array in java - algorithm based
body: <p>I'm writing a program in java where I need to slide the elements of the array and it should be performing as less as possible number of operations as it's inside a double loop and I'm working with length of array ranging from upto 10^8.</p>
  
  <p>Example : A = {1,2,3,4,5,6}
  Result : A = {2,3,4,5,6,1} for 1st time
  A = {3,4,5,6,1,2} for 2nd time and so on..</p>
  
  <p>Please feel free to suggest any other data structure or any modifications to the array!! Thank you guys!! :D</p>