Tiancheng Lou's submission of S Semi-palindromic | CodeChef