How to remove an element from an array?
To remove an element from an array we have to delete the element first and then the array elements lying to the right of the element are shifted left by one place.