I have dry run the code i have made but still one test case is not passing

#include
using namespace std;
bool isSorted(long long int*a,int n)
{
//Base Case
if(n==1||n==0)
{
return true;
}
if(a[0]<a[1] && isSorted(a+1,n-1))
{
return true;
}
else
{
return false;
}
}
int main() {
int n;
cin>>n;
long long int a[1000]={0};
for(int i=0;i<n;i++)
{
cin>>a[i];
}
if(isSorted(a,n))
{cout<<“true”<<endl;}
else
{cout<<“false”<<endl;}
return 0;
}

i think it should be a[0]<=a[1]
as in case with
1 1 2 3.