There is a Pizza Man, who sells pizza, called Hosen.Hosen can store no more than $$$m$$$ pieces of pizza and initially he has $$$m$$$ pieces of pizza stored in his store.
There are $$$n$$$ customers; the $$$i_{th}$$$ of them will order $$$a_i$$$ pieces of pizza.
And Hosen has a positive integer $$$d$$$, that is when the number of pieces in the store is less than $$$d$$$, he refills it to $$$m$$$.
Here is a more detailed explanation.
When a customer orders $$$x$$$ pieces of pizza, the following happens:
You are given $$$m$$$,$$$n$$$ and the array of customers $$$a$$$; find the minimum value of $$$d$$$ for which all the customers will be happy.
The first line contains a single integer $$$t$$$ $$$(1 \le t \le 10^5)$$$, the number of test cases.
The first line of each test case contains two integers $$$n$$$ and $$$m$$$ $$$(1 \le n,m \le 2 \times 10^5)$$$.
The second line of each test case contains $$$n$$$ integers $$${a_1,a_2,\dots,a_n}$$$ $$$(1 \le a_i \le m)$$$, the elements of the array $$$a$$$.
Let $$$s$$$ be the sum of the array elements. It is guaranteed that the sum of $$$s$$$ overall test cases doesn't exceed $$$2 \times 10^5$$$.
For each test case output a single positive integer $$$d$$$, the minimum value of $$$d$$$ for which all the customers will be happy.
43 21 1 12 21 25 51 3 3 3 56 52 5 1 1 1 5
1 2 3 5