[1, 3, 5, 5, 5, 7, 8, 9] 2 1 2 7 7