Capital One Interview Question

Minimum peak elements from an array by their repeated removal at every iteration of the array