Topic: Stack Problem / Level: beginner

Problem: Implement a function to push elements into a stack and pop elements if they are divisible by a given value.

Run the code to see the output here...