Update array tests

Add curtail solution and update duplicates solution.