Sponsored
Use these hints if you're stuck. Try solving on your own first.
Notice that array words consist of distinct strings.
Iterate over all indices (i, j) and check if they can be paired.
Solve with full IDE support and test cases