all test cases are passed except 1,this is the code prateek bhaiya told us ,
#include<bits/stdc++.h>
using namespace std;
#define ll long long
bool issorted(ll *a,ll n)
{
if(n==1)
return true;
if(a[0]<a[1] && issorted(a+1,n-1))
return true;
return false;
}
int main()
{
ll n;
cin>>n;
ll arr[n];
for(ll i=0;i<n;i++)
cin>>arr[i];
if(issorted(arr,n))
cout<<“true”;
else
cout<<“false”;
return 0;
}