Question: Given the subsequent code segment that reads in a String str
String str = in.nextLine();
Write a loop that will print out the value entered into str in reverse.
It must compile with no errors and follow the directions. Please don't copy and paste from Google.