title: Determine the amount of the peaks the traveller passed
body: <p>It is necessary to determine how many mountains peak according to the data, our traveler exactly crossed. A point is called a mountain peak if the two adjacent points are NOT higher or equal in height to the current point. Extreme points are not considered mountain peaks (starting and ending).
  For example:</p>
  
  <pre><code>[1,2,3,2,1]
  Answer: 1 peak
  
  [1,2,3,3,2,1]
  Answer: 0 peak
  
  [1,2,5,6,4,3,4,2,1]
  Answer: 2 peaks
  </code></pre>
  
  <p>I am having trouble with comparison of 2 adjacent peaks in a loop, and furthermore  moving through the peaks. Or should I just use any function?  </p>
  
  <pre><code>peaks = [1,2,3,4,5,6,3,1,4,5,7,4,3,12,67,85,34,23] #the peak points
  
  for i in peaks:
      if i[0]&gt;i[1][2]  # i stacked here, just dont know the right algorithm
  </code></pre>