I am trying to write an erase function for a sequence of elements. I understand what is needed to get done. Erase the position requested and all other repetitions of that number in the sequence. I have this, which is incorrect I already know. Now, I do know that whichever element is erased, the sequence then needs to be readjusted so there are no empty slots in the sequence. I have a variable, which is available to these functions, that keeps track of how many elements are in the array, so I need to decrement (elementNumber--). I know what the following function is doing, I just can't find a working solution.