There are precisely eight 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.
Determine the least number of button presses required to get from RRRRLLLL to LRLRLRLR.