SP9748 CODESPTF - Palindromes

Description

Given a string, you keep swapping any two characters in the string randomly till the string becomes a palindrome. What is the expected number of swaps you will make?

Input Format

N/A

Output Format

N/A