Driver code to test above methods
int main ( ) { string arr [ ] = { " ab " , " bc " , " cd " , " de " , " ed " , " da " } ; int N = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; if ( possibleOrderAmongString ( arr , N ) == false ) cout << " Ordering ▁ not ▁ possible STRNEWLINE " ; else cout << " Ordering ▁ is ▁ possible STRNEWLINE " ; return 0 ; }