#297. withoutX
withoutX
Background
Description
Given a string, if the first or last chars are 'x', return the string without those 'x' chars, and otherwise return the string unchanged.
Format
Input
Output
Samples
xHix
"Hi"
xHi
"Hi"
Hxix
"Hxi"
Limitation
1s, 1024KiB for each test case.