IBM Interview Question

Find all peaks in an array