Case #1: 3 2 1 2 2 3 Case #2: 3 3 1 2 2 3 3 1 Case #3: 5 6 5 1 3 2 2 4 2 5 4 1 3 5