Function to return the lexicographically smallest String that can be formed by swapping at most one character . The characters might not necessarily be adjacent .
static String findSmallest ( char [ ] s ) { int len = s . Length ;