Update Java's permutation generator to match C++.
Update Java problems to use new permutation API.
Solve problem 43 using Java.