For this Question: You are given a string your task is to reverse the given string.The first line of the input contains a string.

Constraints:-
1 <= string length <= 100
String contains only lowercase english lettersThe output should contain reverse of the input string.Sample Input
abc

Sample Output
cba, I have written this Solution Code: import java.util.*;
import java.lang.*;
import java.io.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
for(int i = s.length()-1;i>=0;i--){
System.out.print(s.charAt(i));
   }
}
	    

}, In this Programming Language: Java, Now tell me if this Code is compilable or not?