Question d’entretien chez Rooster Grin

Given a sorted array, remove any duplicates from the array. Optimize for space (do it in-place).