Cannot pass all test cases

what am i missing here?
my code: https://ide.codingblocks.com/s/223237
problem: https://online.codingblocks.com/app/player/68606/content/45362/5048/code-challenge

hello @Aayush-Bangroo-2654737981474284,
before applying lower bound/upper_check wheck whether the element u r going to find is there in array or not.
if it is not then print -1 -1.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.