An element is called a peak element if its value is not smaller than the value of its adjacent elements(if they exists).
Given an array arr[] of size N, find the index of any one of its peak elements.
For eg,
In the array {2,4,1} 4 is the peak element. We need to return the index of the peak element.