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