input: [1, 2, 3, 4, 5, 10, 9, 8, 7, 6] 0 input: [1, 2, 9, 10, 5, 4, 3, 8, 7, 6] 0 input: