I am kind of stuck. I don't want a code but kind of an idea on where to start or what to use in order to get kickstarted. I don't want a whole solution as it takes the fun away.
I know I would need a scanner to input a string/array/int with 4 digits which then should be swapped around in all possible options?
For loop for example swapping 1st number with second, third, fourth and then repeat while 1st number is last. But then how to avoid duplicates?