How to find the smallest integer superior to an integer n
The next function should return the smallest integer which is superior to n and whose digits are all different from all of n’s digits.
For example next(654321) should return 700000.
if no such integer exists then the function must return -1.
Write the body of the next(n) function
Note: n is a strictly positive integer lower than 2^31