Find lower and upper bound


it shows tle.

i have modified your code https://ide.codingblocks.com/s/246904 you are not decrementing q(no of testcases) rest everything is working fine.
Please mark it resolved and rate it .
Thanks!