Operate the Subarray

Company: Airtel_24sep

Difficulty: medium