Count of triplets in an Array (i, j, k) such that i < j < k and a[k] < a[i] < a[j]
Given an array arr[] of N integers, the task is to count number of triplets (i, j, k) in the array such that a[k] < a[i] < a[j] and i < j < k.Examples: Input: arr[] = {2, 5, 1, 3, 0} Output: 4 Explanation: Below are the triplets (i, j, k) such that i < j < k and a[k] < a[i] <