Consider this array 5 5 5 3 3 1 1 1 1 1 1. We can delete 5 5 3 3 and the final array will consist of 7 fives.
Consider this array 5 5 5 3 3 1 1 1 1 1 1. We can delete 5 5 3 3 and the final array will consist of 7 fives.