Find Duplicate in a sorted array assuming there is only one duplicate