Function to generate string from characters at odd indices
static string makeOddString ( string str ) { string odd = " " ; for ( int i = 1 ; i < str . Length ; i += 2 ) { odd += str [ i ] ; } return odd ; }