Minimum Number of Increments on Subarrays to Form a Target Array – Pinterest Coding Interview Question