C ++ program to count number of distinct instance where second highest number lie before highest number in all subarrays .
#include <bits/stdc++.h> NEW_LINE #define MAXN  100005 NEW_LINE using namespace std ;