Two Pointers | C++
\nclass Solution {\npublic:\n    string makeSmallestPalindrome(string s) {\n        int l = 0, r = s.size() - 1;\n        while(l < r) {\n            if(s[l] !=
```\nclass Solution {\npublic:\n    string makeSmallestPalindrome(string s) {\n        int l = 0, r = s.size() - 1;\n        while(l < r) {\n            if(s[l] != s[r]) {\n                char c = min(s[l], s[r]);\n                s[l] = s[r] = c;\n            }\n            l++, r--;\n        }\n        return s;\n    }\n};\n```
['Two Pointers', 'C++']