Sollicitatievraag bij LinkedIn

How to implement a stack adding 2 more functionality to a regular Stack: 1. peekMax 2. popMax