Given a string s, return the minimum number of characters to insert anywhere so that s becomes a palindrome. The input is JSON {s}.
Input: JSON {s}.
Output: Integer — the minimum insertions.
Input: {"s":"mbadm"}
Output: 2
Explanation: Insert two characters.Input: {"s":"leetcode"}
Output: 5
Explanation: Five insertions needed.Input: {"s":"a"}
Output: 0
Explanation: Already a palindrome.1<=|s|<=1000