start
and end
are not equal, return False.start
and end
and compare the resulting strings. If they are not equal, return False.start
and end
strings and compare the positions of 'L' and 'R' characters.
start
, ensure its position is the same or to the left in end
.start
, ensure its position is the same or to the right in end
.