[1, 2, 1, 3, 3, 4, 3, 5] [0, 2, 4, 3, 1] 6