Write Algorithm To Insert And Delete Table Rows