Replace with Minimum
Code\n\nclass Solution {\npublic:\n    string makeSmallestPalindrome(string s) {\n        int n = size(s);\n        for(int i=0; i<=n/2; ++i){\n            if(s
# Code\n```\nclass Solution {\npublic:\n    string makeSmallestPalindrome(string s) {\n        int n = size(s);\n        for(int i=0; i<=n/2; ++i){\n            if(s[i] != s[n-i-1]){\n                char e = min(s[i],s[n-i-1]);\n                s[i] = e;\n                s[n-i-1] = e;\n            }\n        }\n        return s;\n    }\n};\n```
['C++']