Increasing Decreasing Sequence

1 test case is failing can you find the test case .
#include

using namespace std;

int main(){
int n;
cin>>n;
int *arr = new int[n];
for (int i = 0; i < n; ++i){
cin>>arr[i];
}
int i;
for(i = 0; i < n-1; i++)
{
if (arr[i] < arr[i + 1]){
break;
}
}
i++;
for (; i +1< n; ++i){
if(arr[i] > arr[i + 1]){
cout<<“false”;
return 0;
}
}
cout<<“true”;
return 0;
}

Hey @sudhanshu8917,

You have missed an important part of the question:
The sequence is strict i.e. same numbers at contiguous places are not allowed.
Example:
5
1
2
2
3
4
Expected Output:
False
Your Output:
True

Hope, this would help.
Give a like, if you are satisfied.