nestedArray = [[2,3],[3,2],[1,2]]
combinations = set()
for array in nestedArray:
combination = set()
combination.add(array[0])
combination.add(array[1])
combination = frozenset(combination)
if not (combination in combinations):
print("not found")
combinations.add(combination)
print(combinations)
bmVzdGVkQXJyYXkgPSBbWzIsM10sWzMsMl0sWzEsMl1dCmNvbWJpbmF0aW9ucyA9IHNldCgpCmZvciBhcnJheSBpbiBuZXN0ZWRBcnJheToKICBjb21iaW5hdGlvbiA9IHNldCgpCiAgY29tYmluYXRpb24uYWRkKGFycmF5WzBdKQogIGNvbWJpbmF0aW9uLmFkZChhcnJheVsxXSkKICBjb21iaW5hdGlvbiA9IGZyb3plbnNldChjb21iaW5hdGlvbikKICBpZiBub3QgKGNvbWJpbmF0aW9uIGluIGNvbWJpbmF0aW9ucyk6CiAgICBwcmludCgibm90IGZvdW5kIikKICAgIGNvbWJpbmF0aW9ucy5hZGQoY29tYmluYXRpb24pCgpwcmludChjb21iaW5hdGlvbnMp