Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think of the L and R's as people on a horizontal line, where X is a space. The people can't cross each other, and also you can't go from XRX to RXX.
Solve with full IDE support and test cases