Question 1:
Merge Intervals With Labels
Question 2:
Card Game
Given an array of +ve numbers and another array of same size with zeros.
Here are the operations you're allowed to perform on the second array.
How many increment operations does it require to transform second array of zeros to the first array?
Input:
[3, 4, 2, 5, 7]
Output: 9