Assume that a queue is implemented with a circular array. Writea method in Pseudocode to calculate the sum of all elements in thequeue.