Function that count the subsequence such that each element as the minimum element in the subsequence
static void solve ( int [ ] arr , int N ) { Dictionary < int , int > M = new Dictionary < int , int > ( ) ;