You are given an array arr[] of integers. Your task is to check whether the array is sorted in non-decreasing order using recursion only. You are not allowed to use any loops.
Example 1
Input: arr[] = [10 20 30 40 50 60]
Output : true Explanation: The Array Is Sorted
Example 2
Input: arr[] = [ 90 80 60 70 40 100]
Output: false
Explanation: The Given Array is Not Sorted
Sign in to write, run, and submit your solution against the full test suite.