findPeakElement.cpp