Cognizant Interview Question

Write a code to remove third element from stack