https://hack.codingblocks.com/practice/p/370/493
if Q>1, then we have to consider same stack to fetch the numbers??