Pregunta de entrevista de Fortinet

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