Driver code
arr = [ " ab " , " bc " , " cd " , " de " , " ed " , " da " ] NEW_LINE N = len ( arr ) NEW_LINE if ( possibleOrderAmongString ( arr , N ) == False ) : NEW_LINE INDENT print ( " Ordering ▁ not ▁ possible " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Ordering ▁ is ▁ possible " ) NEW_LINE DEDENT