Whenever you're ready, walk me through how you'd approach this.
How would you find the next biggest digit for a given integer by using the digits in the number?
Implement a function that returns the smallest integer greater than the input that can be formed by rearranging exactly the same digits. Explain the behavior when no greater arrangement exists, and address repeated digits, invalid input, and numbers with multiple digits.