The goal of this problem is to find the maximum number in the stack: 5 6 10 4 1
Coded in C++ and Python.