ZoomRx interview question

Write a program which will take an array as input and will return complete if the elements follows the trait of increasing first and being stable and then decreasing.eg [1 2 4 5 5 3 1]