I have an ArrayList(input) of Node objects. Each node stores the information about how many times a sentence has been searched. The definition of Node class is -