// Arup Guha
// 9/9/2026
// Methods with Strings as parameters and/or return values.

public class TestStringMethods {

	// Quick test of reverse.
	public static void main(String[] args) {
		System.out.println(reverse("This is Not a Palindrome, so it'll be different backwards."));
	}
	
	// Returns a new String storing the reverse contents of original.
	public static String reverse(String original) {
		
		// Build answer here.
		String res = "";
		
		// Concatenate letters to answer from back to front.
		for (int i=original.length()-1; i>=0; i--)
			res = res + original.charAt(i);
			
		// Here is our answer.
		return res;
	}
}