Test Case 1 is unable to pass

I am unable to figure out why test case 1 is not passing.

def check_sort(count, input_string):
if (count != len(input_string)):
return False

if (count <= 0 or count >= 1000):
    return False

if (len(input_string) == 0):
    return False


elif (count == 2):
    return input_string[0] < input_string[1]

return input_string[0] < input_string[1] and check_sort(count - 1, input_string[1:])

number = int(input())
input_list = list(map(int, input().strip().split()))[:number]
print(check_sort(number, input_list))

You can simply write a function which takes in two parameters - array and its size
Now we have to figure out the base cases -

  1. If size=1 or size=0 at any point, we return true as an array of size 0 or 1 will be sorted.
  2. Comparing last and second last elements - if arr[n-1] < arr[n-2], we return false.
    And finally the recurrence relation will be -
    return function(arr, n-1)

@amanindersingh Please mark your doubt as resolved if you are satisfied.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.