NVIDIA interview question

second largest element in the stack