Program to delete an element in an array