Please check my latest java code and tell me why its not running all the test cases