Help me in solving JBR14 problem

My issue

Learning course: Learn Advance Java
Problem Link: CodeChef: Practical coding for everyone

The correct answer would be banana , as the code will traverse thro your array and select the largest word present in the array .
The condition present there does this work in the code by updating the longest word and storing it !!
hope this helps!!