in string compose L R x character like RXXLRXRXL consist replace occurrence XL LX replace occurrence RX xr give start string start end string end return true exist sequence move transform string Example 1input start RXXLRXRXL end XRLXXRRLXOutput trueexplanation we transform start end follow stepsRXXLRXRXL XRXLRXRXL XRLXRXRXL XRLXXRRXL XRLXXRRLXExample 2input start x end LOutput false constraints1 startlength 104startlength endlengthBoth start end consist character L R x