Lower_bound() in C++ STL

#include
#include
#include
using namespace std;
int main()
{
sets;
s.insert(1);
s.insert(5);
s.insert(7);
s.insert(2);
s.insert(12);
s.insert(10);
auto it = s.lower_bound(15);
cout<< *it <<endl;
return 0;
}

in the above snippet, we have to predict the output. Now, as lower_bound() will give back an iterator pointing to value not less than 15. But as there is no value >=15 it will print to the end of the set ans supposedly give out garbage value. But the answer is 6. HOW?

Yes it should be garbage value, can you tell where is the answer given as 6?

It is the 7th question in C++ STL QUIZ of this course.

C++ STL QUIZ -1* to be precise

Yeah I saw, answer should be any garbage value.

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.