Write Algorithm To Insert And Delete An Element From The Dom