Not pass all the test cases in problem find upper and lower bound

What is wrong in this?

code: https://ide.codingblocks.com/s/210933

Hi @princeky4,
in dis question first check whether an element exist in array or not.
u can use binary_search stl to check this then find lower/upper bound.
eg. 1 2 3 5 6
in dis, lower_bound(4) is 2 but ans should be -1.
Hope dis helps.