pointer to even digit
j = 0 NEW_LINE ans = " " NEW_LINE while ( i < len ( odd ) and j < len ( even ) ) : NEW_LINE INDENT if ( odd [ i ] < even [ j ] ) : NEW_LINE INDENT ans += str ( odd [ i ] ) NEW_LINE i = i + 1 NEW_LINE DEDENT else : NEW_LINE INDENT ans += str ( even [ j ] ) NEW_LINE j = j + 1 NEW_LINE DEDENT DEDENT