- Time : O(n)
- Space : O(1) //constant
c++
1 | int shortPalindrome(string s) { |