The problem
e.g.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
Possibilities:
1.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
those are indexes: [1, 2, 4, 5
2.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
those are indexes: [1, 2, 4, 9]
3.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
those are indexes: [1, 2, 7, 9]
4.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
those are indexes: [1, 6, 7, 9]
5.
list1 = ["a", "c", "b", "a", "b", "c", "a", "c", "b"]
list2 = ["a", "c", "a", "b"]
those are indexes: [4, 6, 7, 9]
Output
The output should be an array of indexes never used
for that above example it would be [2, 8] (because it never appears in the indexes)
I tried a whole amount of solutions and all I could do is determine whether list2 is a subsequence of list1 or not