Find upper and lower bound

https://ide.codingblocks.com/s/186984 i dont think kuch bhi galat h phir bhi suggest changes

@sgdon142
Hello sparsh,
add a check that whether it(iterator) is equal to x or not.
if it is equal to x then only print index otherwise print -1.
your code is almost correct just try to modify a bit.


check this