Shrink the Array

Company: Google_28thjuly

Difficulty: easy