Next Permutation Leetcode Solution Github Java