If arr [ i ] is in between first and second then update second
else if ( a [ i ] > second && a [ i ] != first ) = a [ i ] ; } int = 0 , cnt2 = 0 ; for ( int i = 0 ; < n ; ++ ) { if ( a [ i ] == first )