Make the Array Continuous

Company: Amazon

Difficulty: medium