@@ -0,0 +1,589 @@
+import java.io.*;%0Aimport java.util.*;%0Aimport java.text.*;%0Aimport java.math.*;%0Aimport java.util.regex.*;%0A%0Apublic class LeftRotateTheArray %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        Scanner in=new Scanner(System.in);%0A        int n=in.nextInt(),d=in.nextInt(),intArr%5B%5D=new int%5Bn%5D;%0A        int arrSum=n-d;%0A        for (int i=0;i%3Cn;i++)%7B%0A            if (i+arrSum%3E=n) %7B%0A                intArr%5Bi+arrSum-n%5D=in.nextInt();%0A            %7D else %7B%0A                intArr%5Bi+arrSum%5D=in.nextInt();%0A            %7D%0A        %7D%0A        for (int i=0;i%3Cn;i++) System.out.print(intArr%5Bi%5D+%22 %22);%0A    %7D%0A%7D%0A

Create LeftRotateTheArray.java