A string which is a palindrome but has one letter missing will be passed as input. The program must print the missing letter.
Example Input and Output:
If the input is madm the output must be a (madam)
If the input is abcdcb the output must be a (abcdcba)
If the input is mikkm the output must be i (mikkim)
Boundary Conditions: The length of the string will be between 2 and 100.
Input Format: The string will be passed as a single line/input argument via the standard input.
Output Format: The missing letter must be printed to the standard console.
yeah...if it has this rules (only the right part is wrong) then this will be a great homework for me...regardless it appears like I failed at making the code for this question (I used Dlang which string is immutable ??)
Well I was going from the first example, saying: output must be a, whereas I could choose either a or d, giving palindromes madam or mdadm respectively.
Maybe the OP hasn't given us the whole question ...