Driver code
ptr = None NEW_LINE head = Node ( " geeks " ) NEW_LINE head . next = Node ( " geeks " ) NEW_LINE head . next . next = Node ( " abcd " ) NEW_LINE head . next . next . next = Node ( " game " ) NEW_LINE head . next . next . next . next = Node ( " game " ) NEW_LINE head . next . next . next . next . next = Node ( " knight " ) NEW_LINE head . next . next . next . next . next . next = Node ( " harry " ) NEW_LINE head . next . next . next . next . next . next . next = Node ( " geeks " ) NEW_LINE print ( Majority_in_linklist ( head ) ) NEW_LINE