<prompt> Kutekeleza programu Java kugeuza kamba katika njia isiyo ya kawaida.  <response>: One way to reverse a string in a non-standard way is to swap the first and last characters, then the second and second-to-last characters, and so on until the middle of the string is reached.Here is an example Java program that implements this method:import java.util.Scanner;public class ReverseString public static void mainString args Scanner scanner new ScannerSystem.in; System.out.printEnter a string to reverse: ; String original scanner.nextLine; char reversed original.toCharArray; int length original.length; for int i 0; i length 2; i char temp reversedi; reversedi reversedlength - i - 1; reversedlength - i - 1 temp; System.out.printlnReversed string: new Stringreversed; 