Making Palindrome

HihoCoder - 1323