Case #1: 3 7 17 17 Case #2: 2 3 38 Case #3: 1 41 Case #4: 3 1 5 35 Case #5: 4 1 2 7 31 Case #6: -1 Case #7: 4 2 4 9 26