Apply Operations To An Array Leetcode Problems On Strings