[tex]\textsf{\textbf{Question}}\\\textsf{\hspace{1em} Given a String, try to make it a palindrome by adding characters}\\\textsf{\hspace{1em} in front of it. Hence, find the shortest palindrome after performing}\\\textsf{\hspace{1em} this alteration.}\\\\\textsf{\textbf{Example}}\\\texttt{\hspace{.5em} \symbol{73}nput: \textsl{`abcd'}}\\\texttt{\hspace{.5em} \symbol{79}uput: \textsl{`dcbabcd'}}\\\\\textsf{\textbf{Language:} Any}[/tex]