Printing indexes where array B occur
for ( int i = 0 ; i < z . Length ; i ++ ) { if ( z [ i ] == n ) { Console . Write ( ( i - n - 1 ) + " ▁ " ) ; flag = 1 ; } } if ( flag == 0 ) { Console . WriteLine ( " Not ▁ Found " ) ; } }