127 - "Accordian" Patience

Simply follow the problem description literally.

A reference solution is here.

Creative Commons License
This blog by Che-Liang Chiou is licensed under a Creative Commons Attribution 4.0 International License.