Checking all pairs in a list for a property PYQs | Prasnya