Deduplicate a sorted integer array coding exercise | SovranCode