Kang's submission of S Semi-palindromic | CodeChef