Wrapper over the recursive function leftRotateRec ( ) It left rotates [ ] arr by d .
public static void leftRotate ( int [ ] arr , int d , int n ) { leftRotateRec ( arr , 0 , d , n ) ; } public static void leftRotateRec ( int [ ] arr , int i , int d , int n ) {