Honey Interview Question

Delete three consescutive duplicates letter from an array.