0
/ 70
Design a recursive method for scrambling Strings of length 3 or more. It must swap the first and last character of the input String, then...
Design a recursive method for scrambling Strings of length 3 or more. It must swap the first and last character of the input String, then split the String in half and do it again to each half.
You may consult the Java documentation on String for methods to use.
Examples:
scramble("Banana") -> "naaBan"
scramble("Pineapple") -> "ieenpPapl"
Your feedback will appear here when you check your answer.