#### My code works but doesn't verify, help me please

I've tried several tests on IntelliJ and they all worked as expected:
Input: 3, 3, 3; Output: 3
Input: 3, 3, 4; Output: 3
Input: 3, 4, 5; Output: 4
Don't understand what I got wrong :(
Any help would be much appreciated!