Greater than neighbours
Greater than neighbours. Given a list of numbers, determine and print the number of elements that are greater than both of their neighbors. The first and the last elements of the list should not be considered because they don’t have two neighbors. Test Case Input (List of Numbers) Expected Output 1 1, 2, 3, 4, …