Topic: Stack Problem / Level: beginner

Problem: Write a program to check if the elements of a stack form an arithmetic sequence.

Run the code to see the output here...