Solution to Remove Element