You have 6 numbers and 4 operators. Best way would probably to write a code that goes through all the possibilities. You should split it up into two separate algorithms. One that makes a list of all the possible combinations of the 6 numbers (you could make it work for other amounts as well). And another one that runs all the combinations of operators.
I have a thought on the number sorter but it's hard to explain in text so try to follow my thoughts with this:
Flip 1st pair:
1234 > 2134
Flip 2nd pair, then 1st pair:
1324 > 3124 : 2314 > 3214
And keep going with the 3rd pair. If my thoughts are correctly this method should work on any amount of numbers, you just have to figure out a nice way of storing them up into a list.
[center]