Fortinet Interview Question

Implement Stack using a list in python, and throw exceptions correctly, followed by database questions