Minimum Operations to Make Binary Array Elements Equal to One I | Leetcode 3191