[c,a,a,b,b,d], [c,a,b,b,d,d,a] or [a,a,b,b,c,d,d] should return false while [a,a,c,d,b,b] or [a,a,c,b,b,d] should return true as the duplicates are not consecutive.