minimum number of cycle shifts for each string if it can be made palindrome
By Jan Haag at Jul 03 2020