See other videos @codeyao9796 Python "set ADT and check" solution to Leetcode 2395. This problem is essentially a variant of Leetcode 1 - Two Sum, or we might say, easier variant.