Transform the Array

Company: Intuit_28thjuly

Difficulty: medium