Create nextpermutation.java