Find List Peaks

Create a Python function to identify 'peaks' in an integer list.

Develop a Python function that identifies "peaks" in a list of integers. A "peak" is defined as an element in the list that is strictly larger than its neighboring elements. The function accepts a list of integers as an argument and returns a list containing all the elements that are considered "peaks". ### Parameters - `lst`: A list of integers that are to be analyzed to identify "peaks". ### Return Value - The function returns a list containing all the "peaks" found in the input list. ### Examples ```python # 5 & 9 are 'peaks' in the list find_peaks([4, 5, 2, 1, 4, 9, 7, 2]) # Returns: [5, 9] # 2, 3 & 5 are 'peaks' in the list find_peaks([1, 2, 1, 1, 3, 2, 5, 4, 4]) # Returns: [2, 3, 5] # There are no 'peaks' in this list as it's an ascending order list find_peaks([1, 2, 3, 4, 5, 6]) # Returns: [] ```