Pregunta de entrevista de Cognizant

Write a code to remove third element from stack