Here is an example array I have:
[["", "A"], ["B", ""], ["A", ""], ["", "A"]]
I am looking to remove the first and third arrays as they are symmetrical, resulting in this array:
[["B", ""], ["", "A"]]
If anyone knows how to achieve this, please share. I can utilize any data structure and algorithms without concern for time and space complexity.