Function to find the number of subsequences for each element
static void noOfSubsequences ( int [ ] arr , int N ) { int [ ] indices = new int [ N ] ; int i ; for ( i = 0 ; i < N ; i ++ ) indices [ i ] = i ;