Topic: Stack Problem / Level: intermediate

Problem: Create a function to simulate a stack-based task scheduler that processes tasks with different priorities.

Run the code to see the output here...