Minimum Insertions To Make Palindrome

easy
1. You are given a string(str).
2. You have to find the minimum number of characters to be inserted to convert it to a palindrome.

Input Format

A string

Output Format

Check the sample output and question video.

Constraints

1 <= length of s1 <= 10000

Example

Input
pepperatcoding
Output
10
Previous
Largest Square Sub-matrix With All 1's
Next
Print All Paths With Minimum Cost

Related Questions