Then you get the same result in your IDE and here, there is a problem with your code, because, you can see the next bigger number you can form with the digits of 144 is indeed 414.
// expected -1 <- Your function returned this// to equal 414 <- This was the expected result
Then you get the same result in your IDE and here, there is a problem with your code, because, you can see the next bigger number you can form with the digits of 144 is indeed 414.
Pretty sure you're misreading the logs, read this: https://docs.codewars.com/training/troubleshooting/#print-input
Print the input, what was it?