Bug with the delete keyword :-
It deletes the elements value but never deletes the memory occupied that's why length is the same
It deletes the elements value but never deletes the memory occupied that's why length is the same
If the index is not available we will get -1 as an index (written interview question )