We will traverse the whole array once right?
Here in the eg we got a sum>k only at the last element.
Suppose we get a sum greater than k be4 the end of array
then -
first we will deque elements from front . once we stop deque- ing , we will again start inserting at rear . right?