Print the value range for each i
for ( int i = 0 ; i < n ; i ++ ) { Console . WriteLine ( ( left [ i ] + 1 ) + " ▁ " + ( right [ i ] - 1 ) ) ; } } static void Main ( ) { List < int > arr = new List < int > ( ) ;