Pergunta de entrevista da empresa Great Developers

Given array and find half increasing and second half decrsing