Answer:
/ReversedEvenOddString.java
import java.util.Scanner;
public class ReversedEvenOddString {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.nextLine();
String evens = "";
String odds = "";
for(int i = s.length()-1;i>=0;i--){
if(i%2==1){
odds += s.charAt(i);
}
else{
evens += s.charAt(i);
}
}
String res;
if(s.length()%2==1){
res = evens+odds;
}
else{
res = odds+evens;
}
System.out.println(res);
}
}