give array positive integer arr necessarily distinct return lexicographically large permutation small arr exactly swap a swap exchange position number arri arrj if return array Example 1input arr 321Output 312explanation Swapping 2 1example 2input arr 115Output 115explanation this small permutationExample 3input arr 19467output 17469explanation swap 9 7 constraints1 arrlength 1041 arri 104