How to rotate an array with index element in Java|| DSA

Published --