Pergunta de entrevista da empresa Cognizant

Write a code to remove third element from stack