Checking all pairs in a list for a property; Inner loop and outer loop — structure and execution order Previous Year Questions | Prasnya