Citadel Interview Question

Find all the peaks and troughs in an array. What is polymorphism?