PhysicsWallah Interview Question

LeetCode Advanced Loop Array question