finding the just next greater character than s [ i ]
for j in range ( 0 , len ( v ) , 1 ) : NEW_LINE INDENT if ( v [ j ] > s [ i ] ) : NEW_LINE INDENT print ( v [ j ] , end = " ▁ " ) NEW_LINE break NEW_LINE DEDENT DEDENT