problem24-LexicographicPermutation