Google Interview Question

Minimum Number of Increments on Subarrays to Form a Target Array