Pergunta de entrevista da empresa Bloomberg

finding the peak value in strictly increasing then decreasing sequence