Consider all words for first row as starting points and print all sentences
for i in xrange ( C ) : NEW_LINE INDENT if arr [ 0 ] [ i ] != " " : NEW_LINE INDENT printUtil ( arr , 0 , i , output ) NEW_LINE DEDENT DEDENT