its giving run time error in 2nd test case
code-https://ide.codingblocks.com/s/86786
ques-SORTED ARRAY
Take as input N, the size of an integer array. Take one more input, which is a list of N integers separated by a space, and store that in an array. Write a recursive function which prints true if the array is sorted, and false otherwise.
Input Format:
N x y z
Constraints:
1 < N < 1000
-10^9 < i < 10^9, where i is an element of the array
Output Format
true OR false
Sample Input
5
1 2 3 4 5
Sample Output
true