Great Developers interview question

Given array and find half increasing and second half decrsing