Given a string s, return the minimum number of characters to delete so that the remaining string is a palindrome. The input is JSON {s}.
Input: JSON {s}.
Output: Integer — the minimum deletions.
Input: {"s":"aebcbda"}
Output: 2
Explanation: Delete 'e' and 'd'.Input: {"s":"abcba"}
Output: 0
Explanation: Already a palindrome.Input: {"s":"a"}
Output: 0
Explanation: Single character.1<=|s|<=1000