Question d’entretien chez Cognizant

Write a code to remove third element from stack