There are six buttons in a row. Each button shows an arrow pointing left (L) or right (R). When you press a button, all buttons in the direction of its arrow (not including itself) rotate 180 degrees.
Find the least number of button presses required to get from RRRLLL to LRLRLR.