A utility function to print a substring str [ low ... ( high - ( low + 1 ) ) ]
static void printSubStr ( string str , int low , int high ) { Console . WriteLine ( str . Substring ( low , high - low + 1 ) ) ; }