Compressing an Array

Company: Texas

Difficulty: medium