I am trying to flatten a Big List:
List<List<List<String>>> input
Example of my list:
[[[a,b],[c,b]], [[x],[y]]]`
I want the result to be as follows:
[[a,b,c],[x,y]]
For the duplicates, I will try to use LinkedHashSet, but I can not flatten the list.