Find upper and lower bound

i need to know how the output of query 2 is 1-lowerbound and 1- upperbound as answer

@yath17 hey yash there is a video on youtube about upper and lower bound go and check this out.