You are given an array A of distinct positive integers of length N.
You need to find the number of ways to split the array into two non-empty contiguous subarrays such that:
The visible example is approximately:
N = 6 A = [8, 2, 10, 4, 11, 12]
Output: 2
The explanation mentions that there are 2 valid partitions, but the exact partition indices are too blurry to read.
1 ≤ N ≤ 2 × 10^5 1 ≤ A[i] ≤ 10^9 All elements of A are distinct.