Adding demo code on removing while iterating.