If I run the code, the removal worked, and only 2 elements are printed to standard output, Does anyone have a clue, why the last requirement isn't fulfilled?