Topic: Queue Problem / Level: intermediate

Problem: Write a program to calculate the sum of the first n natural numbers using a queue.

Run the code to see the output here...