Wrong Answer
Input:	[1,2,2]
Output:	5
Expected: 4