Find a peak element in Linked List
Given a linked list of integers, the task is to find a peak element in the given linked list. An element is a peak, if it is greater than or equals to its neighbors. For boundary elements, consider only one neighbor. Examples: Input : List = {1 -> 6 -> 8 -> 4 -> 12} Output : 8Explanation