Assignment 5.2 Stack Handling