nextSmallerNumber
titleYou have to create a function that takes a positive integer number and returns the next bigger number formed by the same digits:123nextBigger(12)==21nextBigger(513)==531nextBigger(2017)==2071
If no bigger number can be composed using those digits, return -1:
123nextBigger(9)==-1nextBigger(111)=
...