Duplicated numbers in the array


#1

The test didn’t consider duplicated numbers in array.
Should add one more test case:
A: 1 8 1 1 2 3
B: 1 2 3 1 8 1