Function Call
List < int > tmp = calculate ( arr ) ; Console . Write ( " [ " ) ; for ( int i = 0 ; i < tmp . Count ; i ++ ) { if ( i != tmp . Count - 1 ) { Console . Write ( tmp [ i ] + " , ▁ " ) ; } else { Console . Write ( tmp [ i ] ) ; } } Console . Write ( " ] " ) ; } }