What I have is the array like this:
[["", "A"], ["B", ""], ["A", ""], ["", "A"]]
What I want is to remove the first and third array since they are symmetry, then the result look like this:
[["B", ""], ["", "A"]]
Can anybody tell me how to do it? I can use any data structure and algorithms and don't consider time and space complexity.