C++ STL quiz doubt

I cant understand the way the comparisons are being made using the custom compare structure

@Aayush-Bangroo-2654737981474284 hey comparator, is used to make custom comparison, we always do not have overloaded operator for comparison, and of we have a class then we need to overload an operator that can make comparision between two objects. It is similar to using comparator in sort bunction.
If this resolves your doubt mark it as resolved.

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.