Read carefully the error message you get, the answer is in there. It's a pain to dig into that stuff (moreover in java...) but you definitely need to learn how to extract useful information from that.
This comment is hidden because it contains spoiler information about the solution
Okay.. it could be solved way easier :D
I´m still learning.
Nice exercise! Thumbs up.
Hi. It's a problem with your code, and not KATA itself.
Before posting issues, have a look in description to see how many times it's been completed (in this case, 3673 java completions). This is a good indication that tests are correct.
When you hit submit, there's more random tests run that you can't see, but you can print the inputs with System.out.println(Arrays.toString(array)), for example.
Note that array isn't always with 3 elements. Sometimes it's 2 numbers, sometimes 5.
So, no, your solution is NOT correct, but I can't really say much more without seeing where and how it fails, or without seeing your code...