Pergunta de entrevista da empresa Google

Minimum Number of Increments on Subarrays to Form a Target Array