Minimum Operations to Convert All Elements to Zero

Minimum Operations to Convert All Elements to Zero - Coding Problem | K5kC