It seems that my code for deleting unnecessary values and making an increasing sequence works correctly. But...
What should I add to the program so that the new array