Intro to Java Classwork: Word Scrambler
Write a Java program named "WordScrambler.java" that asks the user
to enter a single word consisting of all lowercase letters.  Then
have your program display the user's word with the letters in a
scrambled (random) order.

You must use a 'while' (or 'do-while') loop to perform the task of
scrambling the letters in the user's word.  And, while it is not
okay to import or use external methods (other than the 'Scanner'
class), for this assignment, it is okay to put all of your code
inside the 'main' method of your program.


As always, all of your code must be your own, written entirely and
only by you within your online CodeHS.com account.  You must never
copy/paste, receive, view, or in any way use code that was created
or modified by another person, entity, or artificial intelligence.


Advanced Option
Rather than displaying just one arrangement of scrambled letters
of the user's word, write Java code to produce and display every
permutation of scrambled letters.  For example, if the user's word
is "cat", then your code should display "cat", "cta", "act", "atc",
"tca", and "tac" (in any order).  Obviously, the longer the user's
word, the more permutations of the letters there will be.