Function to return the lexicographically smallest string that can be formed by swapping at most one character . The characters might not necessarily be adjacent .
def findSmallest ( s ) : NEW_LINE INDENT length = len ( s ) ; NEW_LINE DEDENT